<?php if ($this->pageCount && $this->pageCount > 1): ?>
    <ul class="pagination">
    <?php if (isset($this->previous)): ?>
        <li class="next"><a href="<?php echo $this->url(array('page' => $this->previous)) . $this->query; ?>">< Previous</a></li>
    <?php else: ?>
        <li class="next_disabled">Previous</li>
    <?php endif; ?>

    <?php foreach ($this->pagesInRange as $page): ?>
        <?php if ($page != $this->current): ?>
        <li class="item"><a href="<?php echo $this->url(array('page' => $page)) . $this->query; ?>"><?php echo $page; ?></a></li>
        <?php else: ?>
            <li class="item_disabled"><?php echo $page; ?></li>
        <?php endif; ?>
    <?php endforeach; ?>
    <?php if (isset($this->next)): ?>
        <li class="next"><a href="<?php echo $this->url(array('page' => $this->next)) . $this->query; ?>">Next</a></li>
    <?php else: ?>
        <li class="next_disabled">Next</li>
    <?php endif; ?>
    </ul>
    <p>&nbsp;</p>
<?php endif; ?>